/*
 * testecadprod.java
 *
 * Created on 24/07/2011, 14:26:35
 */
package siscom.frames;

import java.sql.SQLException;
import siscom.componentes.SisFrame;
import siscom.modelos.DAO.MarcaDAO;
import siscom.util.Util;

/**
 *
 * @author Carlos Ribeiro
 */
public class testecadprod extends SisFrame {
    
    public testecadprod() {
        initComponents();
        Util.setLookAndFeel(this);
        //setTitulo("TITULO");
    }
    public static void main(String[] args ){ 
        new testecadprod().setVisible(true);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        try {
            autoCompleteComboBox1 = new siscom.componentes.AutoCompleteComboBox(new MarcaDAO().selecionarTodos(), true);
            sisTextField1 = new siscom.componentes.SisTextField();
            sisTextField2 = new siscom.componentes.SisTextField();

        } catch(SQLException e) {
            Util.trataErro(e);
        }

        sisTextField1.setText("sisTextField1");

        sisTextField2.setText("sisTextField2");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(58, 58, 58)
                        .addComponent(autoCompleteComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(132, 132, 132)
                        .addComponent(sisTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addComponent(sisTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(122, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(83, 83, 83)
                .addComponent(autoCompleteComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(62, 62, 62)
                .addComponent(sisTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(54, 54, 54)
                .addComponent(sisTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(62, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private siscom.componentes.AutoCompleteComboBox autoCompleteComboBox1;
    private siscom.componentes.SisTextField sisTextField1;
    private siscom.componentes.SisTextField sisTextField2;
    // End of variables declaration//GEN-END:variables
}
